﻿using System;

namespace Jonathan.DataAccess.Sqlite
{
   /// <summary>
   /// Maps a sqlite name to the given property.
   /// </summary>
   [AttributeUsage (AttributeTargets.Property)]
   public class SqliteNameAttribute : Attribute
   {
      /// <summary>
      /// Initializes a new sqlite name mapping attribute.
      /// </summary>
      /// <param name="name">Name of the sqlite object.</param>
      public SqliteNameAttribute (string name)
      {
         this.Name = name;
      }
      
      /// <summary>
      /// Gets or Set the column name.
      /// </summary>
      public string Name { get; private set; }
   }
}
